﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Sok.Munkae.Core;
using Sok.Munkae.Tenant;

namespace Sok.Munkae.Web.FormsAuthentication
{
    public class OrganizationContext : ITenantIdentifier
    {
        public ITenant GetTenant()
        {
            throw new NotImplementedException();
            //return (System.Threading.Thread.CurrentPrincipal as User).Organization;
        }

        public int GetTenantId()
        {
            return (System.Threading.Thread.CurrentPrincipal as User).Organization.Id;
        }
    }
}
